package com.loveshes.controller;

import com.loveshes.UserApi;
import com.loveshes.dto.User;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wangz4
 * @date 2024/12/26 13:53
 */
@RestController
@RequestMapping("user")
public class UserController {
    
    @DubboReference
    private UserApi userApi;
    
    @RequestMapping("find")
    public User find(String name) {
        return userApi.find(name);
    }
    
}
